package com.noah.common.trace.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @author noah
 * 2023/9/13 19:16
 */
@Component
@Aspect
public class TraceLogAspect {
    @Around("@annotation(com.noah.common.trace.annotation.TraceLog)")
    public Object doAround(ProceedingJoinPoint point) throws Throwable {
        Object proceed = point.proceed();
        System.out.println("触发traceLog注解");
        return proceed;
    }
}
